package com.info.zhiduoduo.common.configs;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by 80567 on 2017/3/8.
 */

public class Configs {

    private static final Properties props=new Properties();

    static {
        InputStream in = Configs.class.getClassLoader().getResourceAsStream("common.properties");
        try {
            props.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String getKey(String key){
        return props.getProperty(key);
    }
}
